<?php

namespace App\Http\Requests\Admin\Customer\Suggest;

use App\Http\Requests\ApiRequest;

class WaxSkinSuggestStoreRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'wax_skin_suggests'                      => 'required|array|size:3',
            'wax_skin_suggests.*'                    => 'required|array|size:5',
            'wax_skin_suggests.*.*'                  => 'required|array|size:4',
            'wax_skin_suggests.*.*.*'                => 'required|array|size:5',
            'wax_skin_suggests.*.*.*.level_name'     => 'required|string',
            'wax_skin_suggests.*.*.*.level_intro'    => 'required|string',
            'wax_skin_suggests.*.*.*.level_experts'  => 'required|string',
            'wax_skin_suggests.*.*.*.level_personal' => 'required|string',
            'wax_skin_suggests.*.*.*.level_suggest'  => 'required|string',
        ];
    }
}
